<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<!-- <script type="text/javascript" src="./js/eventutil.js"></script> -->
<script type="text/javascript">
	var div = document.getElementById("mydiv");
	
	function a(){
		var i = 0;
		return function(){
			return i++;
		};
	}
	
	var b = a();
	function abcd(){
		alert(b());
	}
	
	function abcdef(){
		var but = document.getElementById("mybut");
		but.onclick = function(){
			alert("sssss");
		};
	}
	
</script>
</head>
<body onload="abcdef()">
	<h1>hhhhhhhhh</h1>
	<%
		HttpSession session1 = request.getSession();
		System.out.println("clook:"+request.getCookies());
	%>
	<% System.out.println("ssssssssss"+session.getId());%>
	<h1><button></button></h1>
	<div onclick="abcd(this);" id="mydiv" style="width: 300px;height: 100px;border-bottom-color: red;background-color: green;">
	
	</div>
	<button id="mybut" title="AAA">AAA</button>
</body>

</html>
